inherit eutils
inherit cvs

DESCRIPTION="Open Source Computer Vision Library"
HOMEPAGE="http://www.intel.com/research/mrl/research/opencv/index.htm"
LICENSE="BSD" 
KEYWORDS="x86 amd64 sparc"
SRC_URI=""
SLOT="0"
IUSE="python"
RESTRICT="nomirror"

ECVS_SERVER="cvs.sourceforge.net:/cvsroot/opencvlibrary"
ECVS_MODULE="opencv"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_UP_OPTS="-D ""today"" -dP"
ECVS_CO_OPTS="-D ""today"""

DEPEND=">=x11-libs/gtk+-2.0.0
	media-libs/libpng
	media-libs/jpeg
	media-libs/tiff
	media-video/ffmpeg
	python? ( >=dev-lang/python-2.2 )"
#	media-plugins/libdc1394 ## fails because of old version


src_compile() {
	cd ${WORKDIR}/${ECVS_MODULE}
	sh autogen.sh
    econf \
	`use_enable python` \
     || die "econf failed"
    emake || die "emake failed"
}

src_install() {
	cd ${WORKDIR}/${ECVS_MODULE}
    make install DESTDIR=${D} || die "make install failed"
}
